package com.chee.plant.hibernate.object;

import java.util.Calendar;

import com.chee.plant.hibernate.object.base.BaseEmail;

public class Email extends BaseEmail {
	private static final long serialVersionUID = 1L;

	/* [CONSTRUCTOR MARKER BEGIN] */
	public Email() {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public Email(java.lang.Integer id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public Email(java.lang.Integer id, java.lang.Integer ownerId,
			java.lang.String fromId, java.lang.String toId,
			java.lang.String tittle, java.lang.String content,
			java.util.Date created) {

		super(id, ownerId, fromId, toId, tittle, content, created);
	}

	/* [CONSTRUCTOR MARKER END] */
	public void setDefaults() {
		this.setContent("");
		this.setCreated(Calendar.getInstance().getTime());
		this.setFromId("");
		this.setId(0);
		this.setOwnerId(0);
		this.setTittle("");
		this.setToId("");
	}
}